/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import Logik.Medium;
import java.io.FileNotFoundException;
import java.util.List;
import javax.swing.ListModel;
import javax.swing.event.ListDataListener;

/**
 *
 * @author Andreas
 */
class MediaListModel implements ListModel {
    private List<Medium> mediaList;

    public MediaListModel(List<Medium> mediaList) {
        this.mediaList = mediaList;
    
    }

    @Override
    public int getSize() {
      return mediaList.size();
    }

    @Override
    public Object getElementAt(int index) {
        return mediaList.get(index);
    }
    @Override
    public void addListDataListener(ListDataListener l) {
        
    }

    @Override
    public void removeListDataListener(ListDataListener l) {
        
    
}}
